Skip to content

Commit

Permalink
Catch xml.parsers.expat.ExpatError exception
Browse files Browse the repository at this point in the history
This is related to #83. It does not solve the issue, but it prevents the
stack trace until I can find a better fix.
  • Loading branch information
williamh committed Oct 15, 2016
1 parent d9b10ad commit f0d60db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bugz/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import sys
import urllib.error
import urllib.parse
import xml.parsers.expat
import xmlrpc.client

from bugz.configfile import get_config_option
Expand Down Expand Up @@ -156,3 +157,5 @@ def call_bz(self, method, params):
raise BugzError(error)
except urllib.error.URLError as error:
raise BugzError(error)
except xml.parsers.expat.ExpatError as error:
raise BugzError(error)

0 comments on commit f0d60db

Please sign in to comment.