Skip to content

Commit 1db0210

Browse files
committed
Storage without pdb
1 parent 88009b8 commit 1db0210

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

compressor/storage.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(self, location=None, base_url=None, *args, **kwargs):
4343
base_url = settings.MEDIA_URL
4444
super(AppSavvyCompressorFileStorage, self).__init__(location,
4545
base_url,
46-
*args,
46+
*args,
4747
**kwargs)
4848

4949
def _open(self, name, mode='rb'):
@@ -72,17 +72,14 @@ def source_path(self, name):
7272
def exists(self, name):
7373
if os.path.exists(os.path.join(self.location, name)):
7474
return True
75-
75+
7676
paths = self.get_media_paths()
7777

78-
try:
79-
for app, media_path in paths:
80-
if os.path.exists(os.path.join(media_path, name)):
81-
return True
78+
for app, media_path in paths:
79+
if os.path.exists(os.path.join(media_path, name)):
80+
return True
8281

83-
return False
84-
except Exception, err:
85-
import pdb;pdb.set_trace()
82+
return False
8683

8784
def get_media_paths(self):
8885
paths = []

0 commit comments

Comments
 (0)