# DEBUG: print("DEBUG: Committing changes ...")
fba.connection.commit()
- except Exception as exception:
+ except BaseException as exception:
print(f"ERROR: blocker='{blocker}',software='{software}',exception[{type(exception)}]:'{str(exception)}'")
else:
print("WARNING: Unknown software:", blocker, software)
# DEBUG: print(f"DEBUG: tag[]={type(tag)} - CALLED!")
if not isinstance(tag, bs4.element.Tag):
raise ValueError(f"Parameter tag[]={type(tag)} is not type of bs4.element.Tag")
- elif not isinstance(tag, bs4.element.Tag):
- raise KeyError("Cannot find table with instances!")
elif len(tag.select("tr")) == 0:
raise KeyError("No table rows found in table!")
# DEBUG: print("DEBUG: Committing changes ...")
fba.connection.commit()
- except Exception as exception:
+ except BaseException as exception:
print(f"ERROR: domain='{domain}',software='mastodon',exception[{type(exception)}]:'{str(exception)}'")
# DEBUG: print("DEBUG: EXIT!")
entry["reason"] = reason["reason"]
fba.connection.commit()
- except Exception as exception:
+ except BaseException as exception:
print(f"ERROR: domain='{domain}',software='pleroma',exception[{type(exception)}]:'{str(exception)}'")
# DEBUG: print("DEBUG: EXIT!")