Skip to content

Commit df0380e

Browse files
committed
added very basic error handling on initial sqlite database access
1 parent 7ea0b7f commit df0380e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

pastebin-mirror/storage.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,7 @@ def save_paste_reference(self, table, key, timestamp, size, expires, title, synt
137137
)
138138
)
139139

140-
# self.connection.commit()
141-
142-
try:
143-
self.connection.commit()
144-
except:
145-
print("no")
146-
raise
140+
self.connection.commit()
147141

148142
def save_paste_content(self, table, key, content):
149143
self.connection.execute(

0 commit comments

Comments
 (0)