Skip to content

Commit 46b932e

Browse files
committed
no exception handling
1 parent 793b287 commit 46b932e

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

qiita_client/qiita_client.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -924,11 +924,10 @@ def delete_file_from_central(self, filepath):
924924
else:
925925
os.remove(filepath)
926926
elif self._plugincoupling == 'https':
927-
try:
928-
response = self.get(
929-
'/cloud/delete_file_from_central/' + filepath,
930-
rettype='object')
931-
except:
932-
pass
927+
# will return in internal server error, when qiita is in productive
928+
# mode
929+
response = self.get(
930+
'/cloud/delete_file_from_central/' + filepath,
931+
rettype='object')
933932

934933
return filepath

0 commit comments

Comments
 (0)