Skip to content

Commit 4800f8a

Browse files
author
Marta Gómez Macías
committed
Fix error handling in update ruleset script using python3
1 parent c0a4715 commit 4800f8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

update_ruleset

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ try:
3030
from urllib2 import urlopen, URLError, HTTPError
3131
except:
3232
from urllib.request import urlopen # Python 3
33+
from urllib.error import URLError, HTTPError
3334

3435

3536
class RulesetLogger:

0 commit comments

Comments
 (0)