@@ -389,7 +389,7 @@ def __get_package(self, package, filters=None):
389389 if FILTER_NOT_FREE in filters :
390390 if not any (l in pkg .license for l in nonfree ):
391391 return
392- if FILTER_DEVELOPMENT in filters and not "-devel" in pkg .name :
392+ if FILTER_DEVELOPMENT in filters and "-devel" not in pkg .name :
393393 return
394394 if FILTER_NOT_DEVELOPMENT in filters and "-devel" in pkg .name :
395395 return
@@ -763,7 +763,7 @@ def download_packages(self, directory, package_ids):
763763 "Could not download package: %s" % e ,
764764 exit = False ,
765765 )
766- except Exception as e :
766+ except Exception :
767767 self .error (ERROR_INTERNAL_ERROR , _format_str (traceback .format_exc ()))
768768
769769 @privileged
@@ -814,7 +814,7 @@ def install_files(self, transaction_flags, inst_files):
814814 self .error (
815815 ERROR_LOCAL_INSTALL_FAILED , "Could not install: %s" % e , exit = False
816816 )
817- except Exception as e :
817+ except Exception :
818818 self .error (ERROR_INTERNAL_ERROR , _format_str (traceback .format_exc ()))
819819
820820 @privileged
@@ -864,7 +864,7 @@ def install_packages(self, transaction_flags, package_ids):
864864 self .error (
865865 ERROR_PACKAGE_FAILED_TO_INSTALL , "Could not install: %s" % e , exit = False
866866 )
867- except Exception as e :
867+ except Exception :
868868 self .error (ERROR_INTERNAL_ERROR , _format_str (traceback .format_exc ()))
869869
870870 @privileged
@@ -931,7 +931,7 @@ def remove_packages(self, transaction_flags, package_ids, allowdep, autoremove):
931931 self .error (
932932 ERROR_PACKAGE_FAILED_TO_REMOVE , "Could not remove: %s" % e , exit = False
933933 )
934- except Exception as e :
934+ except Exception :
935935 self .error (ERROR_INTERNAL_ERROR , _format_str (traceback .format_exc ()))
936936
937937 @privileged
@@ -1104,7 +1104,7 @@ def update_packages(self, transaction_flags, package_ids):
11041104 self .error (
11051105 ERROR_PACKAGE_FAILED_TO_INSTALL , "Could not update: %s" % e , exit = False
11061106 )
1107- except Exception as e :
1107+ except Exception :
11081108 self .error (ERROR_INTERNAL_ERROR , _format_str (traceback .format_exc ()))
11091109
11101110
0 commit comments