mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-01-03 22:53:24 +01:00
python3: use modern exception syntax
This commit is contained in:
parent
4a3640cc33
commit
dc77754c1a
1 changed files with 1 additions and 1 deletions
|
|
@ -1055,7 +1055,7 @@ class FanFicFarePlugin(InterfaceAction):
|
|||
for x in range(0,2):
|
||||
try:
|
||||
adapter.getStoryMetadataOnly(get_cover=False)
|
||||
except exceptions.FailedToLogin, f:
|
||||
except exceptions.FailedToLogin as f:
|
||||
logger.warn("Login Failed, Need Username/Password.")
|
||||
userpass = UserPassDialog(self.gui,url,f)
|
||||
userpass.exec_() # exec_ will make it act modal
|
||||
|
|
|
|||
Loading…
Reference in a new issue