Commit 8f3f232e authored by Vasyl Bodnaruk's avatar Vasyl Bodnaruk

add message to traceback

parent 7058f8c2
......@@ -43,7 +43,7 @@ class NewsUpdater:
self.update_news('update wp_esi_news_accept set tags_id=%s where id=%s', (tags, i[0]))
print('News id={} was updated'.format(i[0]))
except BaseException as e:
print(e.with_traceback())
print(e.with_traceback(e))
def update_all_text(self, condition='where 1'):
for i in self.select_news('select id, url from wp_esi_news_accept ' + condition):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment